package com.x.crm.model;


import com.x.crm.DocDesc;
import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@MappingTable(tableName = "CRM_INSURANCE")
public class Insurance extends BaseObject  {
    @DocDesc("保险公司ID")
    @MappingColumn(columnName = "INSURANCE_ID", columnPk = true, columnLength = 32)
    private String insuranceId;
    @DocDesc("保险公司名称")
    @MappingColumn(columnName = "INSURANCE_NAME")
    private String insuranceName;
    @DocDesc("市场ID")
    @MappingColumn(columnName = "MARKET_ID")
    private String marketId;
    @DocDesc("市场ID")
    @MappingColumn(columnName = "SHOP_ID")
    private String shopId;
    @DocDesc("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @MappingColumn(columnName = "INSURANCE_CREATE_TIME")
    private Date insuranceCreateTime;
    @DocDesc("状态")
    @MappingColumn(columnName = "INSURANCE_STATE")
    private Integer insuranceState;

    public Insurance(){}
    public Insurance(String  marketId,Integer state){
        this.marketId = marketId;
        this.insuranceState = state;
    }


    public String getInsuranceId() {
        return insuranceId;
    }

    public void setInsuranceId(String insuranceId) {
        this.insuranceId = insuranceId;
    }

    public String getInsuranceName() {
        return insuranceName;
    }

    public void setInsuranceName(String insuranceName) {
        this.insuranceName = insuranceName;
    }

    public String getMarketId() {
        return marketId;
    }

    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public Date getInsuranceCreateTime() {
        return insuranceCreateTime;
    }

    public void setInsuranceCreateTime(Date insuranceCreateTime) {
        this.insuranceCreateTime = insuranceCreateTime;
    }

    public Integer getInsuranceState() {
        return insuranceState;
    }

    public void setInsuranceState(Integer insuranceState) {
        this.insuranceState = insuranceState;
    }
}
